import type { CategoryResult } from '@/types/category'
import { http } from '@/utils/http'
// 搜索-商品搜索-带筛选条件 /search/all   post
export const searchAllApi = () => {
  return http({
    method: 'POST',
    url: '/search/all',
    header: {
      'Content-Type': 'application/json',
    },
  })
}
// 搜索-提示语 /search/tips get
export const searchTipsApi = () => {
  return http({
    method: 'GET',
    url: '/search/tips',
  })
}
// 分类  /category/top
export const getCategoryTopApi = () => {
  return http<CategoryResult[]>({
    method: 'GET',
    url: '/category/top',
  })
}
